import app from '@/main'

export function getFormItems(type, releaseInfo, flag = 0, view = 0) {
	if (type === 'goods') {
		if (flag == 0) {
			let tempItems = JSON.parse(JSON.stringify(items));
			return tempItems
		} else if (flag == 1) {
			let tempItems = JSON.parse(JSON.stringify(items1));
			return tempItems
		} else if (flag == 2) {
			let tempItems = JSON.parse(JSON.stringify(items2));
			return tempItems
		} else if (flag == 3) {
			let tempItems = JSON.parse(JSON.stringify(items3));
			return tempItems
		} else {
			let tempItems = JSON.parse(JSON.stringify({}));
			return tempItems
		}
	} else if (type === 'transport') {
		let ret_transport = JSON.parse(JSON.stringify(items))
		if (releaseInfo.release_type === '1') { //有车求货		
			if (flag == 0) {
				ret_transport = JSON.parse(JSON.stringify(transport_release_type_1))
				return ret_transport
			} else if (flag == 1) {
				ret_transport = JSON.parse(JSON.stringify(transport_release_type_1_1))
				return ret_transport
			} else if (flag == 2) {
				ret_transport = JSON.parse(JSON.stringify(transport_release_type_1_2))
				return ret_transport
			} else {
				return JSON.parse(JSON.stringify({}))
			}
		} else if (releaseInfo.release_type === '2') { //有货求车		  		
			if (flag == 0) {
				ret_transport = JSON.parse(JSON.stringify(transport_release_type_2))
				return ret_transport
			} else if (flag == 1) {
				ret_transport = JSON.parse(JSON.stringify(transport_release_type_2_1))
				return ret_transport
			} else if (flag == 2) {
				ret_transport = JSON.parse(JSON.stringify(transport_release_type_2_2))
				return ret_transport
			} else if (flag == 3) {
				ret_transport = JSON.parse(JSON.stringify(transport_release_type_2_3))
				return ret_transport
			} else {
				return JSON.parse(JSON.stringify({}))
			}
		} else {
			if (releaseInfo.human_type === '1') { //货源信息
				if (view == 0) {
					ret_transport = JSON.parse(JSON.stringify(transport_release_type_3))
					return ret_transport
				} else {
					ret_transport = JSON.parse(JSON.stringify(transport_release_type_3_view))
					return ret_transport
				}
			} else { //我要带货
				ret_transport = JSON.parse(JSON.stringify(transport_release_type_4))
				return ret_transport
			}
		}
	} else if (type === 'crossborder') { // 跨境货代
		let ret_crossborder = JSON.parse(JSON.stringify(crossborder))
		return ret_crossborder
	} else if (type === 'crossborder1') { // 跨境货代
		let ret_crossborder = JSON.parse(JSON.stringify(crossborder1))
		return ret_crossborder
	} else if (type === 'crossborder2') { // 跨境货代
		let ret_crossborder = JSON.parse(JSON.stringify(crossborder2))
		return ret_crossborder
	} else if (type === 'crossborder3') { // 跨境货代
		let ret_crossborder = JSON.parse(JSON.stringify(crossborder3))
		return ret_crossborder
	} else if (type === 'professional') {
		let ret_professional = JSON.parse(JSON.stringify(professional))
		return ret_professional
	}
}



//数组合并
function combineArrays(arr1, arr2, arr3) {
	return [...new Set([...arr1, ...arr2, ...arr3])];
}



//跨境货代 参与竞标  表单
let crossborder1 = [{
		key: "price",
		label: "费用总价",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: "send_time",
		label: "接货时间",
		placeholder: "请输入接货时间",
		type: "picker",
		required: true,
		value: "",
		rules: {
			start: 1
		},
	},
	{
		key: "price_unit",
		label: "币种",
		placeholder: "",
		type: "disabled",
		required: true,
		value: "元",
		rules: {},
		details: {
			type: "priceUnit"
		}
	},
	// {
	// 	key: "num",
	// 	label: "数量",
	// 	placeholder: "请输入数字",
	// 	type: "disabled",
	// 	required: true,
	// 	slot: "number_unit",
	// 	value: "",
	// 	rules: {},
	// },
	// {
	// 	key: "number_unit",
	// 	label: "数量单位",
	// 	placeholder: "请选择数量单位",
	// 	type: "disabled",
	// 	required: true,
	// 	value: '',
	// 	rules: {},
	// 	details: {
	// 		type: "numberUnit"
	// 	}
	// },
	{
		key: "speed",
		label: "速度(天)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: "port_city",
		label: "发货口岸",
		placeholder: "发货口岸",
		type: "port_city",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: "mode",
		label: "运输方式",
		placeholder: "请选择运输方式",
		type: "checkbox",
		required: true,
		value: {
			pid: 0,
			value: '',
			text: '汽运,空运,海运,火车,不限',
			level: 1,
			type: 'mode',
		},
		rules: {},
	}
];
let crossborder2 = [{
		key: "images",
		label: "请上传图片",
		placeholder: "",
		type: "images",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "videos",
		label: "请上传视频",
		placeholder: "",
		type: "videos",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "files",
		label: "请上传资质等文件",
		placeholder: "",
		type: "files",
		required: false,
		value: [],
		rules: {},
	},
];
let crossborder3 = [{
		key: "con",
		label: "详情",
		placeholder: "请输入详情内容",
		type: "textarea",
		required: false,
		value: "",
		rules: {
			border: 1
		},
	},
	{
		key: "is_margin",
		label: "是否缴纳保证金",
		explain: "保证金释义",
		explainTitle: "保证金",
		placeholder: "",
		type: "radios",
		required: false,
		value: "2",
		rules: {},
	},
	{
		key: "margin_amount",
		label: "保证金金额",
		// explain: "保证金释义",
		// explainTitle: "保证金",
		placeholder: "请输入金额",
		type: "disableds",
		slotDisabledText: '元',
		required: false,
		value: "",
		rules: {},
	}
]
let crossborder4 = [{
		key: "con",
		label: "详情",
		placeholder: "请输入详情内容",
		type: "textarea",
		required: false,
		value: "",
		rules: {
			border: 1
		},
	},
	{
		key: "order_is_margin",
		placeholder: "",
		show: false,
		type: "disable",
		required: false,
		value: ""
	},
	{
		key: "is_margin",
		label: "是否缴纳保证金",
		explain: "保证金释义",
		explainTitle: "保证金",
		placeholder: "",
		type: "radio",
		required: false,
		value: "2",
		rules: {},
	},
	{
		key: "margin_amount",
		label: "保证金金额",
		// explain: "保证金释义",
		// explainTitle: "保证金",
		placeholder: "请输入金额",
		type: "disableds",
		slotDisabledText: '元',
		required: false,
		value: "",
		rules: {},
	}
]
let crossborder = combineArrays(crossborder1, crossborder2, crossborder4);
//跨境货代 参与竞标  表单




//小件 快递公司
let transport_release_type_4 = [{
		key: "product",
		label: "货物名称",
		placeholder: '请输入货物名称',
		type: "text",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: "price",
		label: "运费出价",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
		slot: 'price_unit',
		slottext: 'kg',
	},
	{
		key: "send_time",
		label: "发货时间",
		placeholder: "请选择发货时间",
		type: "picker",
		required: true,
		value: "",
		rules: {
			"start": 1
		},
	},
	{
		key: "price_unit",
		label: "币种",
		placeholder: "",
		type: "disabled",
		required: true,
		value: "元",
		rules: {},
		details: {
			type: "priceUnit"
		}
	},
	{
		key: "product_weight",
		label: "总重量(kg)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	// {
	// 	key: "num",
	// 	label: "数量",
	// 	placeholder: "请输入数字",
	// 	type: "number",
	// 	required: true,
	// 	value: "",
	// 	slot: "number_unit",
	// 	rules: {},
	// },
	// {
	// 	key: "number_unit",
	// 	label: "数量单位",
	// 	placeholder: "请选择数量单位",
	// 	type: "radio",
	// 	required: true,
	// 	value: '',
	// 	rules: {},
	// 	details: {
	// 		type: "numberUnit"
	// 	}
	// },
	{
		key: "product_volume",
		label: "总体积(m³)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},

	// {
	// 	key: ['goods_l', 'goods_w', 'goods_h'],
	// 	label: "单件商品最大尺寸",
	// 	placeholder: ['长', '宽', '高'],
	// 	type: "manyInput",
	// 	required: false,
	// 	value: ['', '', ''],
	// 	rules: {},
	// },


	// {
	// 	key: "speed",
	// 	label: "生产时间（天）",
	// 	placeholder: "请输入数字",
	// 	type: "number",
	// 	required: true,
	// 	value: "",
	// 	rules: {},
	// },
	// {
	//   key: "reach_time",
	//   label: "送达时间",
	//   placeholder: "请选择送达时间",
	//   type: "picker",
	//   required: true,
	//   value: "",
	//   rules: {},
	// },
	// {
	// 	key: "is_margin",
	// 	label: "是否缴纳保证金",
	// 	placeholder: "",
	// 	type: "radio",
	// 	required: false,
	// 	value: "2",
	// 	rules: {},
	// },
	// {
	// 	key: "margin_amount",
	// 	label: "保证金金额",
	// 	explain: "保证金释义",
	// 	explainTitle: "保证金",
	// 	placeholder: "请输入金额",
	// 	slotDisabledText: '元',
	// 	type: "disabled",
	// 	required: false,
	// 	value: "",
	// 	rules: {},
	// },
	{
		key: "images",
		label: "请上传图片",
		placeholder: "",
		type: "images",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "videos",
		label: "请上传视频",
		placeholder: "",
		type: "videos",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "files",
		label: "请上传文件",
		placeholder: "",
		type: "files",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "con",
		label: "详情",
		placeholder: "请输入详情内容",
		type: "textarea",
		required: false,
		value: "",
		rules: {},
	}
]


//小件货源
let transport_release_type_3 = [{
		key: "price",
		label: "运费出价",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
		slot: 'price_unit',
		slottext: 'kg',
	},
	{
		key: "send_time",
		label: "接货时间",
		placeholder: "请输入接货时间",
		type: "picker",
		required: true,
		value: "",
		rules: {
			start: 1
		},
	},
	{
		key: "mode",
		label: "运输方式",
		placeholder: "请选择运输方式",
		type: "checkbox",
		required: true,
		value: {
			pid: 0,
			value: '',
			text: '汽运,空运,海运,火车,不限',
			level: 1,
			type: 'mode',
		},
		rules: {},
	},
	{
		key: "price_unit",
		label: "币种",
		placeholder: "",
		type: "disabled",
		required: true,
		value: "元",
		rules: {},
		details: {
			type: "priceUnit"
		}
	},
	{
		key: "product_weight",
		label: "总重量(kg)",
		placeholder: "请输入数字",
		type: "disabled",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: "product_volume",
		label: "总体积(m³)",
		placeholder: "请输入数字",
		type: "disabled",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: "num",
		label: "数量",
		placeholder: "请输入数字",
		type: "disabled",
		required: true,
		show: false,
		slot: "number_unit",
		value: "",
		rules: {},
	},
	{
		key: "number_unit",
		label: "数量单位",
		placeholder: "请选择数量单位",
		type: "disabled",
		required: true,
		show: false,
		value: '',
		rules: {},
		details: {
			type: "numberUnit"
		}
	},
	{
		key: "speed",
		label: "运输速度(天)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	// {
	//   key: "reach_time",
	//   label: "送达时间",
	//   placeholder: "请选择送达时间",
	//   type: "picker",
	//   required: true,
	//   value: "",
	//   rules: {},
	// },
	{
		key: "is_margin",
		label: "是否缴纳保证金",
		explain: "保证金释义",
		explainTitle: "保证金",
		placeholder: "",
		type: "radios",
		required: false,
		value: "2",
		rules: {},
	},
	{
		key: "margin_amount",
		label: "保证金金额",
		//explain: "保证金释义",
		slotDisabledText: '元',
		//explainTitle: "保证金",
		placeholder: "请输入金额",
		type: "disableds",
		required: false,
		value: "",
		rules: {},
	},
	{
		key: "images",
		label: "请上传图片",
		placeholder: "",
		type: "images",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "videos",
		label: "请上传视频",
		placeholder: "",
		type: "videos",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "files",
		label: "请上传文件",
		placeholder: "",
		type: "files",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "con",
		label: "详情",
		placeholder: "请输入详情内容",
		type: "textarea",
		required: false,
		value: "",
		rules: {},
	}
]

let transport_release_type_3_view = [{
		key: "price",
		label: "运费出价",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
		slot: 'price_unit',
		slottext: 'kg',
	},
	{
		key: "send_time",
		label: "接货时间",
		placeholder: "请输入接货时间",
		type: "picker",
		required: true,
		value: "",
		rules: {
			start: 1
		},
	},
	{
		key: "mode",
		label: "运输方式",
		placeholder: "请选择运输方式",
		type: "checkbox",
		required: true,
		value: {
			pid: 0,
			value: '',
			text: '汽运,空运,海运,火车,不限',
			level: 1,
			type: 'mode',
		},
		rules: {},
	},
	{
		key: "price_unit",
		label: "币种",
		placeholder: "",
		type: "disabled",
		required: true,
		value: "元",
		rules: {},
		details: {
			type: "priceUnit"
		}
	},
	{
		key: "product_weight",
		label: "总重量(kg)",
		placeholder: "请输入数字",
		type: "disabled",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: "product_volume",
		label: "总体积(m³)",
		placeholder: "请输入数字",
		type: "disabled",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: "num",
		label: "数量",
		placeholder: "请输入数字",
		type: "disabled",
		required: true,
		show: false,
		slot: "number_unit",
		value: "",
		rules: {},
	},
	{
		key: "number_unit",
		label: "数量单位",
		placeholder: "请选择数量单位",
		type: "disabled",
		required: true,
		show: false,
		value: '',
		rules: {},
		details: {
			type: "numberUnit"
		}
	},
	{
		key: "speed",
		label: "运输速度(天)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	// {
	//   key: "reach_time",
	//   label: "送达时间",
	//   placeholder: "请选择送达时间",
	//   type: "picker",
	//   required: true,
	//   value: "",
	//   rules: {},
	// },
	{
		key: "order_is_margin",
		placeholder: "",
		show: false,
		type: "disable",
		required: false,
		value: ""
	},
	{
		key: "is_margin",
		label: "是否缴纳保证金",
		explain: "保证金释义",
		explainTitle: "保证金",
		placeholder: "",
		type: "radio",
		required: false,
		value: "2",
		rules: {},
	},
	{
		key: "margin_amount",
		label: "保证金金额",
		//explain: "保证金释义",
		slotDisabledText: '元',
		//explainTitle: "保证金",
		placeholder: "请输入金额",
		type: "disableds",
		required: false,
		value: "",
		rules: {},
	},
	{
		key: "images",
		label: "请上传图片",
		placeholder: "",
		type: "images",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "videos",
		label: "请上传视频",
		placeholder: "",
		type: "videos",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "files",
		label: "请上传文件",
		placeholder: "",
		type: "files",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "con",
		label: "详情",
		placeholder: "请输入详情内容",
		type: "textarea",
		required: false,
		value: "",
		rules: {},
	}
]
//小件货源



//竞标 有货求车
let transport_release_type_2_1 = [{
		key: "product_weight",
		label: "载重量(kg)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
		show:false
	},
	{
		key: "product_volume",
		label: "载货体积(m³)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
		show:false
	},
	{
		key: ['car_l', 'car_w', 'car_h'],
		label: "车辆尺寸",
		placeholder: ['长', '宽', '高'],
		type: "manyInput",
		required: false,
		value: ['', '', ''],
		rules: {},
		show:false
	},
	{
		key: "price",
		label: "运费总价",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {}
	},
	{
		key: "price_unit",
		label: "币种",
		placeholder: "",
		type: "disabled",
		required: true,
		value: "元",
		rules: {},
		details: {
			type: "priceUnit"
		},
		show:false
	},
	{
		key: "release_transport",
		label: "运输方式",
		placeholder: "请选择运输方式 >",
		type: "actionSheet",
		required: true,
		value: {
			pid: 0,
			value: '汽运',
			text: '汽运',
			level: 1,
			type: 'release_transport',
		},
		rules: {},
		child: {
			key: "car_category_id",
			label: "车型",
			placeholder: "请选择车型 >",
			type: "actionSheet",
			required: true,
			value: {
				pid: 744,
				value: 0,
				text: '',
				level: 2,
				type: 'release_transport',
			},
			rules: {},
		},
		show:false
	},
	{
		key: "send_time",
		label: "接货时间",
		placeholder: "请输入接货时间",
		type: "picker",
		required: true,
		value: "",
		rules: {
			start: 1
		}
	},
	{
		key: "speed",
		label: "运输速度(天)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	}
]

let transport_release_type_2_2 = [{
		key: "images",
		label: "请上传图片",
		placeholder: "",
		type: "images",
		required: false,
		value: [],
		rules: {},
		show:false
	},
	{
		key: "videos",
		label: "请上传视频",
		placeholder: "",
		type: "videos",
		required: false,
		value: [],
		rules: {},
		show:false
	},
	{
		key: "files",
		label: "请上传资质等文件",
		placeholder: "",
		type: "files",
		required: false,
		value: [],
		rules: {},
		show:false
	},

]

let transport_release_type_2_3 = [{
		key: "con",
		label: "详情",
		placeholder: "请输入详情内容",
		type: "textarea",
		required: false,
		value: "",
		rules: {
			border: 1
		},
	},
	{
		key: "is_margin",
		label: "是否缴纳保证金",
		explain: "保证金释义",
		explainTitle: "保证金",
		placeholder: "",
		type: "radios",
		required: false,
		value: "2",
		rules: {},
	},
	{
		key: "margin_amount",
		label: "保证金金额",
		//explain: "保证金释义",
		slotDisabledText: '元',
		//explainTitle: "保证金",
		placeholder: "请输入金额",
		type: "disableds",
		required: false,
		value: "",
		rules: {},
	},
]

let transport_release_type_2 = [{
		key: "product_weight",
		label: "载重量(kg)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: "product_volume",
		label: "载货体积(m³)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: ['car_l', 'car_w', 'car_h'],
		label: "车辆尺寸",
		placeholder: ['长', '宽', '高'],
		type: "manyInput",
		required: false,
		value: ['', '', ''],
		rules: {},
	},
	{
		key: "price",
		label: "运费总价",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: "price_unit",
		label: "币种",
		placeholder: "",
		type: "disabled",
		required: true,
		value: "元",
		rules: {},
		details: {
			type: "priceUnit"
		}
	},
	{
		key: "release_transport",
		label: "运输方式",
		placeholder: "请选择运输方式 >",
		type: "actionSheet",
		required: false,
		value: {
			pid: 0,
			value: 744,
			text: '汽运',
			level: 1,
			type: 'release_transport',
		},
		rules: {},
		child: {
			key: "car_category_id",
			label: "车型",
			placeholder: "请选择车型 >",
			type: "actionSheet",
			required: true,
			value: {
				pid: 744,
				value: 0,
				text: '',
				level: 2,
				type: 'release_transport',
			},
			rules: {},
		}
	},
	{
		key: "send_time",
		label: "接货时间",
		placeholder: "请输入接货时间",
		type: "picker",
		required: true,
		value: "",
		rules: {
			start: 1
		},
	},
	{
		key: "speed",
		label: "运输速度(天)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	// {
	// 	key: "num",
	// 	label: "数量",
	// 	placeholder: "请输入数字",
	// 	type: "disabled",
	// 	required: true,
	// 	value: "",
	// 	slot: "number_unit",
	// 	rules: {},
	// },
	// {
	// 	key: "number_unit",
	// 	label: "数量单位",
	// 	placeholder: "请选择数量单位",
	// 	type: "disabled",
	// 	required: true,
	// 	value: '',
	// 	rules: {},
	// 	details: {
	// 		type: "numberUnit"
	// 	}
	// },
	{
		key: "order_is_margin",
		placeholder: "",
		show: false,
		type: "disable",
		required: false,
		value: ""
	},
	{
		key: "is_margin",
		label: "是否缴纳保证金",
		explain: "保证金释义",
		explainTitle: "保证金",
		placeholder: "",
		type: "radio",
		required: false,
		value: "2",
		rules: {},
	},
	{
		key: "margin_amount",
		label: "保证金金额",
		//explain: "保证金释义",
		slotDisabledText: '元',
		//explainTitle: "保证金",
		placeholder: "请输入金额",
		type: "disableds",
		required: false,
		value: "",
		rules: {},
	},
	{
		key: "images",
		label: "请上传图片",
		placeholder: "",
		type: "images",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "videos",
		label: "请上传视频",
		placeholder: "",
		type: "videos",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "files",
		label: "请上传资质等文件",
		placeholder: "",
		type: "files",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "con",
		label: "详情",
		placeholder: "请输入详情内容",
		type: "textarea",
		required: false,
		value: "",
		rules: {},
	}
]
//竞标 有货求车



//竞标 有车求货
let transport_release_type_1_1 = [{
		key: "product",
		label: "货物名称",
		placeholder: "请输入货物名称",
		type: "textarea",
		required: true,
		value: "",
		rules: {
			border: 1
		},
	},
	{
		key: "num",
		label: "数量",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		slot: "number_unit",
		value: "",
		rules: {},
	},
	{
		key: "number_unit",
		label: "数量单位",
		placeholder: "请选择数量单位",
		type: "radio",
		required: true,
		value: '',
		rules: {},
		details: {
			type: "numberUnit"
		}
	},
	{
		key: "product_weight",
		label: "总重量(kg)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	}, {
		key: "product_volume",
		label: "总体积(m³)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: ['goods_l', 'goods_w', 'goods_h'],
		label: "单件商品最大尺寸",
		placeholder: ['长', '宽', '高'],
		type: "manyInput",
		required: false,
		value: ['', '', ''],
		rules: {},
	},
	{
		key: "images",
		label: "请上传图片",
		placeholder: "",
		type: "images",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "videos",
		label: "请上传视频",
		placeholder: "",
		type: "videos",
		required: false,
		value: [],
		rules: {},
	}
]
let transport_release_type_1_2 = [{
		key: "price",
		label: "运费总价",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: "price_unit",
		label: "币种",
		placeholder: "",
		type: "disabled",
		required: true,
		value: "元",
		rules: {},
		details: {
			type: "priceUnit"
		}
	},
	{
		key: "send_time",
		label: "发货时间",
		placeholder: "请输入发货时间",
		type: "picker",
		required: true,
		value: "",
		rules: {
			"start": 1
		},
	},
	{
		key: "product_address",
		label: "装货地址",
		placeholder: "请选择装货地址",
		type: "port_city",
		required: true,
		value: [],
		rules: {},
	},
	{
		key: "product_address_details",
		label: "具体位置",
		placeholder: "请输入具体位置",
		type: "text",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "reach_address",
		label: "卸货地址",
		placeholder: "城市信息(默认不限)",
		type: "port_city",
		required: true,
		value: [],
		rules: {},
	},
	{
		key: "reach_address_details",
		label: "具体位置",
		placeholder: "请输入具体位置",
		type: "text",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "files",
		label: "请上传货物清单等文件",
		placeholder: "",
		type: "files",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "con",
		label: "详情",
		placeholder: "请输入详情内容",
		type: "textarea",
		required: false,
		value: "",
		rules: {
			border: 1
		},
	}
]


let transport_release_type_1 = [{
		key: "product",
		label: "货物名称",
		placeholder: "请输入货物名称",
		type: "text",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: "num",
		label: "数量",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		slot: "number_unit",
		value: "",
		rules: {},
	},
	{
		key: "number_unit",
		label: "数量单位",
		placeholder: "请选择数量单位",
		type: "radio",
		required: true,
		value: '',
		rules: {},
		details: {
			type: "numberUnit"
		}
	},
	{
		key: "product_weight",
		label: "总重量(kg)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	}, {
		key: "product_volume",
		label: "总体积(m³)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: ['goods_l', 'goods_w', 'goods_h'],
		label: "单件商品最大尺寸",
		placeholder: ['长', '宽', '高'],
		type: "manyInput",
		required: false,
		value: ['', '', ''],
		rules: {},
	},
	{
		key: "images",
		label: "请上传图片",
		placeholder: "",
		type: "images",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "videos",
		label: "请上传视频",
		placeholder: "",
		type: "videos",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "price",
		label: "运费总价",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: "price_unit",
		label: "币种",
		placeholder: "",
		type: "disabled",
		required: true,
		value: "元",
		rules: {},
		details: {
			type: "priceUnit"
		}
	},
	{
		key: "send_time",
		label: "发货时间",
		placeholder: "请输入发货时间",
		type: "picker",
		required: true,
		value: "",
		rules: {
			"start": 1
		},
	},
	{
		key: "product_address",
		label: "装货地址",
		placeholder: "请选择装货地址",
		type: "port_city",
		required: true,
		value: [],
		rules: {},
	},
	{
		key: "product_address_details",
		label: "具体位置",
		placeholder: "请输入具体位置",
		type: "text",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "reach_address",
		label: "卸货地址",
		placeholder: "城市信息(默认不限)",
		type: "port_city",
		required: true,
		value: [],
		rules: {},
	},
	{
		key: "reach_address_details",
		label: "具体位置",
		placeholder: "请输入具体位置",
		type: "text",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "files",
		label: "请上传货物清单等文件",
		placeholder: "",
		type: "files",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "con",
		label: "详情",
		placeholder: "请输入详情内容",
		type: "textarea",
		required: false,
		value: "",
		rules: {},
	}

	// {
	// 	key: "is_margin",
	// 	label: "是否缴纳保证金",
	// 	placeholder: "",
	// 	type: "radio",
	// 	required: false,
	// 	value: "2",
	// 	rules: {},
	// },
	// {
	// 	key: "margin_amount",
	// 	label: "保证金金额",
	// 	explain: "保证金释义",
	// 	slotDisabledText: '元',
	// 	explainTitle: "保证金",
	// 	placeholder: "请输入金额",
	// 	type: "disabled",
	// 	required: false,
	// 	value: "",
	// 	rules: {},
	// },
]
//竞标 有车求货



let professional = [{
		key: "product",
		label: "服务内容",
		placeholder: "请输入服务内容",
		type: "text",
		required: true,
		value: "",
		rules: {},
	}, {
		key: "price",
		label: "服务报价",
		placeholder: "请输入服务报价",
		type: "number",
		required: true,
		value: "",
		rules: {},
	}, {
		key: "price_unit",
		label: "单位",
		placeholder: "",
		type: "disabled",
		required: true,
		value: "元",
		rules: {},
		details: {
			type: "priceUnit"
		}
	}, {
		key: "speed",
		label: "服务时长(天)",
		placeholder: "请输入服务时长",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	// {
	// 	key: "is_margin",
	// 	label: "是否缴纳保证金",
	// 	placeholder: "",
	// 	type: "radio",
	// 	required: false,
	// 	value: "2",
	// 	rules: {},
	// },
	// {
	// 	key: "margin_amount",
	// 	label: "保证金金额",
	// 	explain: "保证金释义",
	// 	slotDisabledText: '元',
	// 	explainTitle: "保证金",
	// 	placeholder: "请输入金额",
	// 	type: "disabled",
	// 	required: false,
	// 	value: "",
	// 	rules: {},
	// },
	{
		key: "images",
		label: "请上传图片",
		placeholder: "",
		type: "images",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "videos",
		label: "请上传视频",
		placeholder: "",
		type: "videos",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "files",
		label: "请上传文件",
		placeholder: "",
		type: "files",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "con",
		label: "详情",
		placeholder: "请输入详情内容",
		type: "textarea",
		required: false,
		value: "",
		rules: {},
	}
]



//货物竞标
let items = [{
		key: "product",
		label: "提供产品",
		placeholder: "请输入您能提供的产品",
		type: "text",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: "brand",
		label: "品牌",
		placeholder: "请输入品牌",
		type: "text",
		required: false,
		value: "",
		rules: {},
	},
	{
		key: "price",
		label: "单价",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
		slot: "price_unit",
		slot1: "number_unit",
		slot1_ru: "number_unit_ru"
	},
	// {
	// 	key: "send_time",
	// 	label: "发货时间",
	// 	placeholder: "请选择发货时间",
	// 	type: "picker",
	// 	required: true,
	// 	value: "",
	// 	rules: {
	// 		"start":1
	// 	},
	// },
	{
		key: "price_unit",
		label: "币种",
		placeholder: "",
		type: "disabled",
		required: true,
		value: "元",
		rules: {},
		details: {
			type: "priceUnit"
		}
	},
	{
		key: "num",
		label: "数量",
		placeholder: "请输入数字",
		type: "disabled",
		show: false,
		required: false,
		slot: "number_unit",
		value: "",
		rules: {},
	},
	{
		key: "number_unit",
		label: "数量单位",
		placeholder: "请选择数量单位",
		type: "disabled",
		show: false,
		required: false,
		value: '',
		rules: {},
		details: {
			type: "numberUnit"
		}
	},
	{
		key: "number_unit_ru",
		label: "数量单位",
		placeholder: "请选择数量单位",
		type: "disabled",
		show: false,
		required: false,
		value: '',
		rules: {},
		details: {
			type: "numberUnit"
		}
	},
	{
		key: "product_weight",
		label: "总重量(kg)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: "product_volume",
		label: "总体积(m³)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: ['goods_l', 'goods_w', 'goods_h'],
		label: "单件商品最大尺寸",
		placeholder: ['长', '宽', '高'],
		type: "manyInput",
		required: false,
		value: ['', '', ''],
		rules: {},
	},
	{
		key: "parameter",
		label: "",
		placeholder: "",
		type: "parameter",
		required: false,
		value: "",
		rules: {},
	},
	{
		key: "parameter_ru",
		label: "",
		placeholder: "",
		show: false,
		type: "parameter",
		required: false,
		value: "",
		rules: {},
	},
	{
		key: "speed",
		label: "交货时间(天)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	{
		key: "product_address",
		label: "货物出发(所在)地",
		placeholder: "城市信息(默认不限)",
		type: "port_city",
		slot1: 'product_address_ru',
		required: true,
		value: [],
		rules: {},
	},
	{
		key: "product_address_details",
		label: "具体位置",
		placeholder: "请输入具体位置",
		type: "text",
		slot1: 'product_address_details_ru',
		required: false,
		value: "",
		rules: {},
	},
	// {
	//   key: "reach_time",
	//   label: "送达时间",
	//   placeholder: "请选择送达时间",
	//   type: "picker",
	//   required: true,
	//   value: "",
	//   rules: {},
	// },

	{
		key: "order_is_margin",
		placeholder: "",
		show: false,
		type: "disable",
		required: false,
		value: ""
	},
	{
		key: "is_margin",
		label: "是否缴纳保证金",
		explain: "保证金释义",
		explainTitle: "保证金",
		placeholder: "",
		type: "radio",
		required: false,
		value: "2",
		rules: {},
	},
	{
		key: "margin_amount",
		label: "保证金金额",
		//explain: "保证金释义",
		//explainTitle: "保证金",
		placeholder: "请输入金额",
		type: "disableds",
		required: false,
		slotDisabledText: '元',
		value: "",
		rules: {},
	},
	{
		key: "logo",
		label: "上传商品主图",
		placeholder: "上传商品主图",
		type: "images",
		required: true,
		value: [],
		rules: {},
	},
	// {
	// 	key: "goods_brief",
	// 	label: "商品介绍",
	// 	placeholder: "请输入商品介绍",
	// 	type: "text",
	// 	required: false,
	// 	value: "",
	// 	rules: {},
	// },
	{
		key: "images",
		label: "上传商品详情图片",
		placeholder: "",
		type: "images",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "filelist",
		label: "请上传货物表单",
		placeholder: "",
		type: "filelist",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "videos",
		label: "请上传视频",
		placeholder: "",
		type: "videos",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "files",
		label: "请上传文件",
		placeholder: "",
		type: "files",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "con",
		label: "详情信息",
		placeholder: "请输入详情内容",
		type: "textarea",
		required: false,
		value: "",
		rules: {},
	}
]

let items1 = [{
		key: "product",
		label: "提供产品",
		placeholder: "请输入您能提供的产品",
		type: "textarea",
		required: true,
		value: "",
		rules: {
			border: 1
		},
	},
	{
		key: "goods_type",
		label: "",
		placeholder: "",
		type: "goods_type",
		show: false,
		required: false,
		value: "",
		rules: {},
	},
	{
		key: "brand",
		label: "品牌",
		placeholder: "请输入品牌",
		type: "text",
		required: false,
		value: "",
		rules: {},
	},
	{
		key: "logo",
		label: "上传商品主图",
		placeholder: "上传商品主图",
		type: "images",
		required: true,
		value: [],
		rules: {},
	},
	{
		key: "product_weight",
		label: "总重量(kg)",
		placeholder: "请输入数字",
		type: "number",
		required: false,
		value: "",
		rules: {},
	},
	{
		key: "product_volume",
		label: "总体积(m³)",
		placeholder: "请输入数字",
		type: "number",
		required: false,
		value: "",
		rules: {},
	},
	{
		key: ['goods_l', 'goods_w', 'goods_h'],
		label: "单件商品最大尺寸",
		placeholder: ['长', '宽', '高'],
		type: "manyInput",
		required: false,
		value: ['', '', ''],
		rules: {},
	},
	{
		key: "parameter",
		label: "",
		placeholder: "",
		type: "parameter",
		required: false,
		value: "",
		rules: {},
	},
	{
		key: "con",
		label: "商品介绍",
		placeholder: "请输入详情内容",
		type: "textarea",
		required: false,
		value: "",
		rules: {
			border: 1
		},
	},
	{
		key: "images",
		label: "上传商品详情图片",
		placeholder: "",
		type: "images",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "videos",
		label: "请上传视频",
		placeholder: "",
		type: "videos",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "files",
		label: "请上传文件",
		placeholder: "",
		type: "files",
		required: false,
		value: [],
		rules: {},
	},
]
let items2 = [{
		key: "price",
		label: "单价",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
		slot: "price_unit",
		slot1: "number_unit",
		slot1_ru: "number_unit_ru"
	},
	{
		key: "price_unit",
		label: "币种",
		placeholder: "",
		type: "disabled",
		required: true,
		value: "元",
		rules: {},
		details: {
			type: "priceUnit"
		}
	},
	{
		key: "num",
		label: "数量",
		placeholder: "请输入数字",
		type: "disabled",
		show: false,
		required: false,
		slot: "number_unit",
		value: "",
		rules: {},
	},
	{
		key: "number_unit",
		label: "数量单位",
		placeholder: "请选择数量单位",
		type: "disabled",
		show: false,
		required: false,
		value: '',
		rules: {},
		details: {
			type: "numberUnit"
		}
	},
	{
		key: "number_unit_ru",
		label: "数量单位",
		placeholder: "请选择数量单位",
		type: "disabled",
		show: false,
		required: false,
		value: '',
		rules: {},
		details: {
			type: "numberUnit"
		}
	},
	{
		key: "speed",
		label: "交货时间(天)",
		placeholder: "请输入数字",
		type: "number",
		required: true,
		value: "",
		rules: {},
	},
	// {
	// 	key: "send_time",
	// 	label: "发货时间",
	// 	placeholder: "请选择发货时间",
	// 	type: "picker",
	// 	required: true,
	// 	value: "",
	// 	rules: {
	// 		"start":1
	// 	},
	// },
	{
		key: "product_address",
		label: "货物出发(所在)地",
		placeholder: "城市信息(默认不限)",
		type: "port_city",
		slot1: 'product_address_ru',
		required: true,
		value: [],
		rules: {},
	},
	{
		key: "product_address_details",
		label: "具体位置",
		placeholder: "请输入具体位置",
		type: "text",
		slot1: 'product_address_details_ru',
		required: false,
		value: "",
		rules: {},
	},

]

let items3 = [{
		key: "filelist",
		label: "请上传货物表单",
		placeholder: "",
		type: "filelist",
		required: false,
		value: [],
		rules: {},
	},
	{
		key: "is_margin",
		label: "是否缴纳保证金",
		explain: "保证金释义",
		explainTitle: "保证金",
		placeholder: "",
		type: "radios",
		required: false,
		value: "2",
		rules: {},
	},
	{
		key: "margin_amount",
		label: "保证金金额",
		//explain: "保证金释义",
		//explainTitle: "保证金",
		placeholder: "请输入金额",
		type: "disableds",
		required: false,

		slotDisabledText: '元',
		value: "",
		rules: {},
	}
]
//货物竞标